﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLineNew.Attributes;
using ZoneLineNew.Enums;

namespace ZoneLineNew.Models.PrintResult {

    /// <summary>
    /// 补打记录
    /// </summary>
    [Index("{tablename}_uk_code", nameof(Code), IsUnique = false)]
    [Index("{tablename}_uk_abscode", nameof(AbsCode), false)]
    public class LableCompenState {
        [Column(IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 减震器主码
        /// </summary>
        [DgColumnAttr("减震器主码")]
        public string AbsCode { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        [DgColumnAttr("二维码")]
        public string Code { get; set; }

        /// <summary>
        /// 品牌\类别
        /// </summary>
        [DgColumnAttr("品牌\\类别")]
        public string Brand { get; set; }

        /// <summary>
        /// 生产时间
        /// </summary>
        [DgColumnAttr("生产时间")]
        public DateTime PrintTime { get; set; }

        /// <summary>
        /// 左右
        /// </summary>
        [DgColumnAttr("左右")]
        public int LeftRight { get; set; }


        /// <summary>
        /// 型号
        /// </summary>
        [DgColumnAttr("型号")]
        public string Model { get; set; }

        /// <summary>
        /// 产品ID
        /// </summary>
        //[DgColumnAttr("产品ID")]
        public long ProductID { get; set; }


        /// <summary>
        /// 打印参数Json
        /// </summary>
        //[DgColumnAttr("打印参数")]
        public string PrintParams { get; set; }
    }

}
